﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FlowBasis.Services
{
    public static class ServiceResolver
    {
        private static Func<IServiceResolver> s_provider;

        public static bool IsInitialized
        {
            get { return s_provider != null; }
        }

        public static IServiceResolver Instance
        {
            get { return s_provider(); }
        }

        public static void SetProvider(Func<IServiceResolver> provider)
        {
            s_provider = provider;
        }
    }
}
